// GameContentExtension.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "Dll Content/SplashScreen.h"
#include "GameContentExtension.h"

System_Plugin * GetReference(std::string Directory, int WindowW, int WindowH)
{
	if(g_pSplashScreen.get() == NULL)
	{
		g_pSplashScreen = SmartPtr<SplashScreen>(new SplashScreen(Directory));
		WriteCommandLine("Referenced Added for first time");
	}
	else
		System_Utility::CompilerCommandLine("Referenced Added");

	APP_WIDTH = WindowW;
	APP_HEIGHT = WindowH;
	return g_pSplashScreen.get();
}


void RemoveReference(System_Plugin * Plug)
{
	Plug = NULL;
	g_pSplashScreen.reset(NULL);
	g_pSplashScreen.release();
	WriteCommandLine("MainBody Removed");
}